import {Component, OnInit} from '@angular/core';
import {ConfirmationService, MenuItem, MessageService} from 'primeng/api';
import {TranslateService} from '@ngx-translate/core';
import {BaseComponent} from '../../basic/commons/base.component';

@Component({
    selector: 'app-menu',
    templateUrl: './menu.component.html',
    styleUrls: ['./menu.component.scss']
})
export class MenuComponent extends BaseComponent implements OnInit {

    public items: MenuItem[];

    constructor(
        protected messageService: MessageService,
        protected confirmationService: ConfirmationService,
        protected translate: TranslateService) {
        super(messageService, confirmationService, translate);
    }

    ngOnInit() {
        this.items = [
            {
                "label": "主页",
                "routerLink": "home"
            }
        ];
    }

}
